package com.noahsloan.nutils.xml.serial;

import java.io.File;

/**
 * 
 * @author noah
 * 
 * @see Serializer
 */
public class FileSerializer extends AbstractSerializer<File> {

	public FileSerializer() {
		super(File.class);
	}

	/**
	 * @return file.getPath() the form will be dependant on what the
	 *         {@link File} was constructed with. See {@link File#getPath()}.
	 */
	public String serialize(File file) {
		return file.getPath();
	}

}
